import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [
    {
        path:'/',
        redirect: 'rooms'
    },
    {
        path: '/rooms',
        component: () => import('@/views/Rooms.vue')
    },
    {
        path: '/login',
        component: () => import('@/views/Login.vue')
    },
    {
        path: '/register',
        component: () => import('@/views/Register.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
